<?php

	global $_W,$_GPC;

		$data=$_GPC['__input'];	

		$path=dirname(__FILE__)."/test1.txt";

    	file_put_contents($path, $data.PHP_EOL, FILE_APPEND);



   		$client = new swoole_client(SWOOLE_SOCK_TCP);
   		$client->connect('127.0.0.1', 9509, 10) or die("连接失败");//链接mysql客户端
   		$sql = "INSERT INTO `ims_c_mem` (uid,status) VALUES ($data,0)";
   		$client->send($sql);  
   		$resdata = $client->recv();   
   		$client->close();